﻿using Face8280WebSocketServer.Utility.VerifyAttribute;

namespace Face8280WebSocketServer.Controllers.New.FaceDevice
{
    public class AddDeviceParameter
    {
        [VerifyText(iMax: 16, iMin: 16, required: true,
          errCode: 1, sErrorDesc: "设备SN由16个字符组成")]
        public string DeviceSN { get; set; }
        [VerifyText(iMax: 30, iMin: 1, required: true,
                   errCode: 2, sErrorDesc: "设备名称由1-30个字符组成")]
        public string DeviceName { get; set; }
        [VerifyIP(errCode: 2, sErrorDesc: "IP地址错误")]
        public string IPAddress { get; set; }
        [VerifyNum(iMax: 65535, iMin: 1, errCode: 3, sErrorDesc: "端口错误")]
        public int Port { get; set; }
    }
}
